<!DOCTYPE html>
<html lang="zh-cmn-Hans">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
	<meta name="wechat-enable-text-zoom-em" content="true">
	<title>TVBox</title>
	<meta name="layoutmode" content="standard">
	<link rel="stylesheet" type="text/css" href="style.css">
	<link rel="stylesheet" type="text/css" href="ui.css">
</head>

<body>
	<div class="page">
		<div class="page__bd" style="height: 100%;">
			<div class="weui-tab">
				<div id="panel1" role="tabpanel" aria-labelledby="tab1" class="weui-tab__panel">
					<div class="weui-form">
						<div class="weui-form__text-area">
							<h2 class="weui-form__title">TVBox . 搜索</h2>
						</div>
						<div class="weui-form__control-area">
							<div class="weui-cells__group weui-cells__group_form">
								<div class="weui-cells">
									<div class="weui-cell weui-cell_active weui-cell_vcode weui-cell_wrap">
										<div class="weui-cell__bd weui-flex">
											<input id="search_key_word"
												class="weui-input weui-cell__control weui-cell__control_flex"
												type="text" value="" placeholder="请输入搜索的关键字..." />
											<button onclick="search(); return false;"
												class="weui-cell__control weui-btn weui-btn_default weui-vcode-btn">搜索</button>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div id="panel2" role="tabpanel" aria-labelledby="tab2" class="weui-tab__panel" style="display: none;">
					<div class="weui-form">
						<div class="weui-form__text-area">
							<h2 class="weui-form__title">TVBox . 推送</h2>
						</div>
						<div class="weui-form__control-area">
							<div class="weui-cells__group weui-cells__group_form">
								<div class="weui-cells">
									<div class="weui-cell weui-cell_active weui-cell_vcode weui-cell_wrap">
										<div class="weui-cell__bd weui-flex">
											<input id="push_url"
												class="weui-input weui-cell__control weui-cell__control_flex"
												type="text" value="" placeholder="请输入需要推送播放的地址..." />
											<button onclick="push(); return false;"
												class="weui-cell__control weui-btn weui-btn_default weui-vcode-btn">推送</button>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div id="panel3" role="tabpanel" aria-labelledby="tab3" class="weui-tab__panel" style="display: none;">
					<div class="weui-form" style="min-height: 0;">
						<div class="weui-form__text-area">
							<h2 class="weui-form__title">TVBox . 接口</h2>
						</div>
						<div class="weui-form__control-area" style="margin-bottom: 0px !important;">
							<div class="weui-cells__group weui-cells__group_form">
								<div class="weui-cells">
									<div class="weui-cell weui-cell_active weui-cell_vcode weui-cell_wrap">
										<div class="weui-cell__bd weui-flex">
											<input id="diy_api_url"
												class="weui-input weui-cell__control weui-cell__control_flex"
												type="text" value="" placeholder="请输入自定义配置接口地址..." />
											<button onclick="api(); return false;"
												class="weui-cell__control weui-btn weui-btn_default weui-vcode-btn">确定</button>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="weui-form" style="padding-top: 50px; min-height: 0;">
						<div class="weui-form__text-area">
							<h2 class="weui-form__title">本地文件</h2>
						</div>
						<input type="file" id="file_uploader" style="display:none;" onchange="uploadTip()" multiple />
						<div class="weui-form__control-area" style="text-align: center;margin-bottom: 10px !important;">
							<div class="button-sp-area" style="margin-top: 10px;">
								<a href="javascript:void(0)" role="button"
									class="weui-btn weui-btn_mini weui-btn_default weui-wa-hotarea"
									href="javascript:void(0)" onclick="uploadFile()">上传文件</a>&nbsp;
								<a href="javascript:void(0)" role="button"
									class="weui-btn weui-btn_mini weui-btn_default weui-wa-hotarea"
									href="javascript:void(0)" onclick="newFolder()">新建文件夹</a>&nbsp;
								<a id="delCurFolder" href="javascript:void(0)" role="button"
									class="weui-btn weui-btn_mini weui-btn_warn weui-wa-hotarea"
									href="javascript:void(0)" onclick="delFolder()" style="display: none;">删除当前文件夹</a>
							</div>
						</div>
						<div class="weui-cells" id="file_list">
						</div>
					</div>
				</div>
				<div role="tablist" class="weui-tabbar">
					<div id="tab1" role="tab" aria-labelledby="t1_title" aria-selected="true" aria-controls="panel1"
						class="weui-tabbar__item weui-bar__item_on">
						<img style="width: 20px; height: 20px; margin: 5px 0 5px 0;"
							src=""
							alt="" class="weui-tabbar__icon">
						<p id="t1_title" aria-hidden="true" class="weui-tabbar__label">搜索</p>
					</div>
					<div id="tab2" role="tab" aria-labelledby="t2_title" aria-selected="false" aria-controls="panel2"
						class="weui-tabbar__item">
						<img style="width: 20px; height: 20px; margin: 5px 0 5px 0;"
							src=""
							alt="" class="weui-tabbar__icon">
						<p aria-hidden="true" id="t2_title" class="weui-tabbar__label">推送</p>
					</div>
					<div id="tab3" role="tab" aria-labelledby="t3_title" aria-selected="false" aria-controls="panel3"
						class="weui-tabbar__item">
						<img style="width: 20px; height: 20px; margin: 5px 0 5px 0;"
							src=""
							alt="" class="weui-tabbar__icon">
						<p id="t3_title" aria-hidden="true" class="weui-tabbar__label">配置</p>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="fileInfoDialog" role="dialog" aria-modal="false" aria-hidden="true" style="display: none;">
		<div role="button" class="weui-mask"></div>
		<div class="weui-half-screen-dialog">
			<div class="weui-half-screen-dialog__hd">
				<div class="weui-half-screen-dialog__hd__main">
					文件接口
					<span class="weui-half-screen-dialog__tips" role="option">
						点击使用时请打开应用内接口设置对话框
					</span>
				</div>
			</div>
			<div class="weui-half-screen-dialog__bd" id="fileInfo">
				<div class="weui-form__control-area" style="margin-bottom: 0px !important;">
					<div class="weui-cells__group weui-cells__group_form">
						<div class="weui-cells">
							<!-- <div class="weui-cell weui-cell_active weui-cell_vcode weui-cell_wrap">
								<div class="weui-cell__hd"><label class="weui-label">测试地址</label></div>
							</div>
							<div class="weui-cell weui-cell_active weui-cell_vcode weui-cell_wrap">
								<div class="weui-cell__bd weui-flex">
									<input id="fileUrl0" class="weui-input weui-cell__control weui-cell__control_flex"
										type="text" value="" readonly />

								</div>
							</div> -->
							<div class="weui-cell weui-cell_active weui-cell_vcode weui-cell_wrap">
								<div class="weui-cell__hd"><label class="weui-label">本机地址</label></div>
								<div class="weui-cell__bd weui-flex"><button onclick="fileToApi(1); return false;"
										class="weui-cell__control weui-btn weui-btn_default weui-vcode-btn">使用</button>
								</div>
							</div>
							<div class="weui-cell weui-cell_active weui-cell_vcode weui-cell_wrap">
								<div class="weui-cell__bd weui-flex">
									<input id="fileUrl1" class="weui-input weui-cell__control weui-cell__control_flex"
										type="text" value="" readonly />

								</div>
							</div>
							<div class="weui-cell weui-cell_active weui-cell_vcode weui-cell_wrap">
								<div class="weui-cell__hd"><label class="weui-label">局域网地址</label></div>
								<div class="weui-cell__bd weui-flex"><button onclick="fileToApi(2); return false;"
										class="weui-cell__control weui-btn weui-btn_default weui-vcode-btn">使用</button>
								</div>
							</div>
							<div class="weui-cell weui-cell_active weui-cell_vcode weui-cell_wrap">
								<div class="weui-cell__bd weui-flex">
									<input id="fileUrl2" class="weui-input weui-cell__control weui-cell__control_flex"
										type="text" value="" readonly />

								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="weui-half-screen-dialog__ft" style="padding-bottom: 30px;">
				<div class="weui-half-screen-dialog__btn-area">
					<a href="javascript:void(0)" class="weui-btn weui-btn_default" onclick="hideFileInfo()">关闭</a>
					<a href="javascript:void(0)" id="delFileBtn" class="weui-btn weui-btn_warn"
						onclick="delFile()">删除文件</a>
				</div>
			</div>
		</div>
	</div>

	<div role="dialog" aria-hidden="true" aria-modal="true" id="uploadTip" style="display: none;">
		<div class="weui-mask"></div>
		<div class="weui-dialog">
			<div class="weui-dialog__hd"><strong class="weui-dialog__title">确认上传?</strong></div>
			<div class="weui-dialog__bd" id="uploadTipContent"></div>
			<div class="weui-dialog__ft">
				<a role="button" href="javascript:void(0)" onclick="doUpload(0)"
					class="weui-dialog__btn weui-dialog__btn_default">取消</a>
				<a role="button" href="javascript:void(0)" onclick="doUpload(1)"
					class="weui-dialog__btn weui-dialog__btn_primary">确定</a>
			</div>
		</div>
	</div>

	<div role="dialog" aria-hidden="true" aria-modal="true" id="newFolder" style="display: none;">
		<div class="weui-mask"></div>
		<div class="weui-dialog">
			<div class="weui-dialog__hd"><strong class="weui-dialog__title">新建文件夹</strong></div>
			<div class="weui-dialog__bd">
				<input id="newFolderContent" class="weui-input weui-cell__control weui-cell__control_flex" type="text"
					value="" placeholder="请输入文件夹名称..." />
			</div>
			<div class="weui-dialog__ft">
				<a role="button" href="javascript:void(0)" onclick="doNewFolder(0)"
					class="weui-dialog__btn weui-dialog__btn_default">取消</a>
				<a role="button" href="javascript:void(0)" onclick="doNewFolder(1)"
					class="weui-dialog__btn weui-dialog__btn_primary">确定</a>
			</div>
		</div>
	</div>

	<div role="dialog" aria-hidden="true" aria-modal="true" id="delFolder" style="display: none;">
		<div class="weui-mask"></div>
		<div class="weui-dialog">
			<div class="weui-dialog__hd"><strong class="weui-dialog__title">删除文件夹</strong></div>
			<div class="weui-dialog__bd" id="delFolderContent"></div>
			<div class="weui-dialog__ft">
				<a role="button" href="javascript:void(0)" onclick="doDelFolder(0)"
					class="weui-dialog__btn weui-dialog__btn_default">取消</a>
				<a role="button" href="javascript:void(0)" onclick="doDelFolder(1)"
					class="weui-dialog__btn weui-dialog__btn_primary">确定</a>
			</div>
		</div>
	</div>

	<div role="dialog" aria-hidden="true" aria-modal="true" id="delFile" style="display: none;">
		<div class="weui-mask"></div>
		<div class="weui-dialog">
			<div class="weui-dialog__hd"><strong class="weui-dialog__title">删除文件</strong></div>
			<div class="weui-dialog__bd" id="delFileContent"></div>
			<div class="weui-dialog__ft">
				<a role="button" href="javascript:void(0)" onclick="doDelFile(0)"
					class="weui-dialog__btn weui-dialog__btn_default">取消</a>
				<a role="button" href="javascript:void(0)" onclick="doDelFile(1)"
					class="weui-dialog__btn weui-dialog__btn_primary">确定</a>
			</div>
		</div>
	</div>

	<div role="alert" id="warnToast" style="display: none;">
		<div class="weui-mask_transparent"></div>
		<div class="weui-toast">
			<i class="weui-icon-warn weui-icon_toast"></i>
			<p class="weui-toast__content" id="warnToastContent"></p>
		</div>
	</div>

	<div role="alert" id="loadingToast" style="display: none;">
		<div class="weui-mask_transparent"></div>
		<div class="weui-toast">
			<span class="weui-primary-loading weui-icon_toast">
				<span class="weui-primary-loading__dot"></span>
			</span>
			<p class="weui-toast__content">加载中</p>
		</div>
	</div>
	<script src="jquery.js"></script>
	<script src="script.js"></script>
</body>

</html>